Skip to content

fix: trimAndLoadJson failure for llm outputs with <think> tags#2410

Open
abhijitmamarde wants to merge 2 commits intoconfident-ai:mainfrom
abhijitmamarde:main
Open

fix: trimAndLoadJson failure for llm outputs with <think> tags#2410
abhijitmamarde wants to merge 2 commits intoconfident-ai:mainfrom
abhijitmamarde:main

Conversation

@abhijitmamarde
Copy link

@abhijitmamarde abhijitmamarde commented Jan 5, 2026

Some evaluation models (ex: llama-3_3-nemotron-super-49b-v1_5) emit reasoning wrapped in <think>...</think> tags, which caused JSON parsing to fail. This change strips those blocks before running the existing JSON trimming and parsing logic.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 5, 2026

Skipped: This PR was not opened by one of your configured authors: (tanayvaswani, trevor-cai, kritinv, ...)

@vercel
Copy link

vercel bot commented Jan 5, 2026

@abhijitmamarde is attempting to deploy a commit to the Confident AI Team on Vercel.

A member of the Team first needs to authorize it.

@abhijitmamarde
Copy link
Author

admins, Any feedback you can give in order to merge this PR? @tanayvaswani @trevor-cai @kritinv could you please have a look? Thanks in advance!

@abhijitmamarde
Copy link
Author

Gentle nudge to core members!!!
Let me know if anything I could do to help merge this PR.

Thanks!

@abhijitmamarde
Copy link
Author

authors need your action pls!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant